import request from '@/utils/request'

// 获取部门工单列表
export function getDepartMentWorkOrdersList (params) {
    return request({
        url: '/nsk/workOrders/getDepartMentWorkOrderslist',
        method: 'get',
        params
    })
}

// 新增工单回复
export function postReply ({ orderId, departmentId, replyContent }) {
    return request({
        url: '/nsk/reply',
        method: 'post',
        data: { orderId, departmentId, replyContent }
    });
}

// 获取工单回复列表，需传 departmentId 和 orderId
export function getReplyList ({ orderId, departmentId }) {
    return request({
        url: '/nsk/reply/list',
        method: 'get',
        params: { orderId, departmentId }
    });
}

// 获取纪工委统计数据
export function getDWCountMap (params) {
    return request({
        url: '/nsk/workOrders/selectDWCountMap',
        method: 'get',
        params
    })
}
